<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<script src="indexjs/jquery.js" type="text/javascript"></script>
<script src="indexjs/encode.js" type="text/javascript"></script>
<title>网络接入认证系统</title>
<link href="indexcss/wm_7UI.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function cWH(){
var isMobile = !!navigator.userAgent.match(/AppleWebKit.*Mobile.*/) && !!navigator.userAgent.match(/AppleWebKit/);

var pageWidth = document.body.clientWidth > document.documentElement.clientWidth ? document.body.clientWidth : document.documentElement.clientWidth;
var mobileMaxWidth = 768, pcMaxWidth = 480, pcMinWidth = 320;	
var mainWidth = isMobile ? (pageWidth>mobileMaxWidth ? mobileMaxWidth : pageWidth) : (pageWidth>pcMaxWidth ? pcMaxWidth : (pageWidth<pcMinWidth ? pcMinWidth : pageWidth));	
$("#main").width(mainWidth-2-2);

var pageHeight = document.body.clientHeight > document.documentElement.clientHeight ? document.body.clientHeight : document.documentElement.clientHeight;
var mainTop = pageHeight-$("#main").height();
	mainTop = mainTop<0 ? 0 : mainTop;
	mainTop = parseInt(mainTop/2,10);
	mainTop = (isMobile && mainTop>10) ? 10 : mainTop;
$("#main").css("margin-top",mainTop+"px");	
}


$(function(){
cWH();
});

function loginOut(){
var str="ajaxUI_LoginOut.action";
var data_str=encodeToUTF8(str);
$.ajax({
	type: "GET",
	url: data_str,
	success: post_fun,
	error: null,
	timeout: 10000,
	dataType: "json",
	cache: false
});
}

function post_fun(result){
var msg = eval("("+result+")");
if(msg.ret==0){
	weburl="loginout.html";
	window.location.replace(weburl);
}else{
	$("#usr").focus();
	alert(msg.msg);
}
}
</script>
    
</head>

<body>
<div id="wrapper">
<div class="logo"></div>
     <div class="header">
	      <div class="title">OpenPortal网络接入认证系统</div>
		  <div class="column">
		       <div class="login">
		       <div class="login_left">
					<div><label>欢迎：</label><font color="red"><b>您已经认证成功！</b></font></div>
	                <div><label>提示：</label><font color="red"><b>下线前请先退出！</b></font></div>
		       </div>
			   <div class="login_right">
			     <input type="submit" onClick="loginOut()" name="Submit" value="" class="submitout" />
			   </div>
			   <div class="clear"></div>
		  </div>
		  <p class="ckp">
		  </p>
		  <p class="ckp" style="margin-top:60px;">
		    
		  </p>
		  <p class="bq">技术支持：OpenPortalServer项目</p>
		  </div>
	 </div>
	 <div class="footer"><a href="#"><img src="images/banner.jpg" border="0" /></a></div>
</div>
</body>
</html>
